package com.ruubypay.web.core.generator.entity;

import org.apache.commons.lang.StringUtils;

/**
 * Desc : 实体对象属性描述
 * @author sucyun
 * Date :2018/3/17 下午3:37
 */
public class ColumnEntity {
    /**
     * 属性名
     */
    private String attrEnName;
    /**
     * 属性中午释义
     */
    private String attrChName;
    /**
     * 属性类型
     */
    private String type;
    /**
     * 数据列名
     */
    private String columnName;
    /**
     * 含义
     */
    private String remark;
    /**
     * 排序
     */
    private String order;


    public String getAttrEnName() {
        return attrEnName;
    }

    public void setAttrEnName(String attrEnName) {
        this.attrEnName = attrEnName;
    }

    public String getAttrChName() {
        return StringUtils.isBlank(attrChName)?"需自命名":attrChName;
    }

    public void setAttrChName(String attrChName) {
        this.attrChName = attrChName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }
}
